package com.bite.common.core.constants;

public class CacheConstants {
    public final static String LOGIN_TOKEN_KEY = "logintoken:";

    public final static long EXP = 720;

    public static final long REFRESH_TIME = 180;

    /**
     * 题目相关缓存
     */
    public final static String QUESTION_DETAIL = "q:d";  //题目详情

    public final static String QUESTION_TIME_LIST = "q:t:l";  //题目创建时间顺序列表

    public final static String QUESTION_DIFF_LIST = "q:d:l:";  //题目难度关系对应表

    public final static String QUESTION_HOT_LIST = "q:h:l";
    /**
     * 竞赛相关缓存
     */
    public final static String EXAM_DETAIL = "e:d";    //竞赛详情信息

    public final static String EXAM_NOT_STARTED_LIST = "e:t:l"; //未开始竞赛列表

    public final static String EXAM_HISTORY_LIST = "e:h:l"; //历史竞赛列表

    public final static String EXAM_USER_LIST = "e:u:l:"; //用户个人竞赛列表

    public final static String EXAM_QUESTION_LIST = "e:q:l:"; //竞赛下题目列表

    public final static String EXAM_USER_RANK_LIST = "e:r:l:";

    public final static String USER_EXAM_LIST = "u:e:l:";   //用户竞赛列表

    public static final String QUESTION_LIST = "q:l";

    public static final String QUESTION_HOST_LIST = "q:h:l";




    public static final String EXAM_RANK_LIST = "e:r:l:";
    public final static String EXAM_UNFINISHED_LIST = "e:t:l"; // 未完赛竞赛列表
    /**
     * 用户消息相关
     */
    public final static String MESSAGE_DETAIL = "m:d";    //消息详情信息

    public final static String USER_MESSAGE_LIST = "u:m:l:";    //用户消息列表

    public final static String USER_MESSAGE_READ_STATUS = "u:m:r:t"; //用户消息读取状态


    /**
     * 用户相关
     */
    public final static String USER_KEY = "u:d";

    public static final String USER_UPLOAD_TIMES_KEY = "u:u:t"; //用户上传文件次数
    public final static long USER_EXP = 10;
    public final static String USER_DETAIL = "u:d:";   //用户详情信息

    /**
     * 手机验证码相关
     */
    public static final String PHONE_CODE_KEY = "t:a:";//短信验证码
    public static final String PHONE_CODE_TIMES_KEY = "t:l:";//短信发送次数

    public static final String PHONE_CODE_USER_SET_KET = "t:p:a"; //需要发送短信验证码的电话列表


    public static final long DEFAULT_START = 0;

    public static final long DEFAULT_END = -1;

}
